package com.adfframeworks.labs.dao;

import java.util.List;

import com.adfframeworks.labs.domain.Request;

public interface RequestDAO {

	public void create(Integer from, Integer to, Integer community, Boolean ownerRequest);

	public Request getRequest(Integer id);

	public List<Request> listAllRequests();

	public List<Request> listAllToRequests(Integer to);

	public List<Request> listOwnerToRequests(Integer to);

	public List<Request> listNotOwnerToRequests(Integer to);

	public void delete(Integer id);

	public void update(Integer id, Integer from, Integer to, Integer community, Boolean ownerRequest);
}
